package org.springblade.modules.restaurant.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author harry
 * @公众号 Harry技术
 */
@Data
@ColumnWidth(25)
@HeadRowHeight(20)
@ContentRowHeight(18)
public class PurchaseCommodityExcel {

	@Schema(description = "id")
	@ExcelProperty("id")
	@ColumnWidth(0)
	@JsonSerialize(using = ToStringSerializer.class)
	private String id;
	/**
	 * 类别名
	 */
	@Schema(description = "类别名")
	@ExcelProperty("类别名")
	private String categoryName;
	/**
	 * 货物名
	 */
	@Schema(description = "货物名")
	@ExcelProperty("货物名")
	private String commodityName;
	/**
	 * 库存单位
	 */
	@Schema(description = "库存单位")
	@ExcelProperty("库存单位")
	private String stockUnit;
	/**
	 * 库存数量
	 */
	@Schema(description = "库存数量")
	@ExcelProperty("库存数量")
	private BigDecimal stockNumber;

	/**
	 * 参考单价
	 */
	@Schema(description = "参考单价")
	@ExcelProperty("参考单价")
	private BigDecimal referencePrice;
	/**
	 * 库存价值
	 */
	@Schema(description = "库存价值")
	@ExcelProperty("库存价值")
	private BigDecimal stockValue;
}
